function getData(startDate,endDate,pin_take_num,empl_rcd,emplid,yearMonth){
	$("#errorBtncancel").on("tap",function(){
		$("#errorMask").hide();
	});
	$("#loading").show();
	iscroll();
	$.ajax({
		type: "post",
		url: mpsurl+"/mobile/leave/queryLeaveInfo.do",
		dataType: "json",
		data:{method:"qjdwork",startDate:startDate,endDate:endDate,
			pin_take_num:pin_take_num,empl_rcd:empl_rcd,emplid:"00010348012"},
		success: function (data) {
			if(data.resultCode=="500600"){
				var obj = data.value;
				var action_dt_ss = obj.action_dt_ss;
				action_dt_ss = action_dt_ss.substr(0,10);
				var approve_date = obj.approve_date;
				if(approve_date!=""){
					approve_date = approve_date.substr(0,10);
				}
				var bhrs = obj.begin_day_hrs;
				if(bhrs.substr(0,1)==".")
					bhrs = "0"+bhrs;
				var ehrs = obj.end_day_hrs;
				if(ehrs.substr(0,1)==".")
					ehrs = "0"+ehrs;
				var dabs = obj.duration_abs;
				if(dabs.substr(0,1)==".")
					dabs = "0"+dabs;
				//请假单位
				var unittype = obj.unit_type;
				if(unittype=="D"){
					$("#qjtsli").show();
					$("#bday").hide();
					$("#eday").hide();
					$("#qjzxsli").hide();
					$("#qjts").html(dabs);
				}else{
					$("#qjtsli").hide();
					//是否非整日标志
					var all_days_ind = obj.all_days_ind;
					//非整日
					if(all_days_ind=="Y"){
						if(bhrs=="0")
							$("#bday").css("display","none");
						else
							$("#begin_day_hrs").html(bhrs);
						if(ehrs=="0")
							$("#eday").css("display","none");
						else
							$("#end_day_hrs").html(ehrs);
					}
					else{
						$("#bday").css("display","none");
						$("#eday").css("display","none");
					}
					$("#duration_abs").html(dabs);
				}
				$("#action_dt_ss").html(action_dt_ss);
				$("#approve_date").html(approve_date);
				$("#assessor").html(obj.assessor);
				$("#status").html(obj.status);
				$("#descr").html((obj.descr).substr(3));
				$("#startDate").html((obj.startDate).substr(0,10));
				$("#endDate").html((obj.endDate).substr(0,10));
				
				$("#days_str").html(obj.days_str);
				$("#comments").html(obj.comments);
				$("#transaction_nbr").attr("value",obj.transaction_nbr);
				
				/*控制数据显示隐藏*/
				$("#qjdshow").show();
				$("#loading").hide();
				$("#footershow").show();
				iscroll();
			}else{
				checkLogin(data.resultCode,"/mobile/mywork/qjwork.html",data.resultMessage);
			}
		},
		error: function (XMLHttpRequest, textStatus, errorThrown) {
			//errorMask("网络异常");
			setPromptForInput("网络异常");
		}
	});
	
	$(".top-bar-cont span:first-child").click(function(){  //后退功能
		//location.href="qjwork.html?yearMonth="+yearMonth;
		var param = "yearMonth="+yearMonth;
		gotoLocation("/mobile/mywork/qjwork.html",param);
	});
	$("#cancel").on("tap", function(){
		$("#GlobalMask").show();
	});
	$("#MaskBtnCancel").on("tap", function(){
		$("#GlobalMask").hide();
	});
	$("#MaskBtnSubmit").on("tap",function(){
		//alert($("#transaction_nbr").val());
		$.ajax({
			type: "post",
			url: mpsurl+"/mobile/leave/cancelLeave.do",
			dataType: "json",
			data:{method:"cancelwork",emplid:"00010045968",transaction_nbr:$("#transaction_nbr").val()},
			success: function (data) {
				if(data.resultCode=="500600"){
					if(data.value.FLAG=="S"){
						//location.href="qjwork.html";
						setPromptForInput("撤销成功");
						setTimeout(function(){
							gotoLocation("/mobile/mywork/qjwork.html","");
							},2000);
					}else{
						//errorMask(data.value.HR_SSTEXT_TEXT);
						setPromptForInput(data.value.HR_SSTEXT_TEXT);
					}
				}else{
					checkLogin(data.resultCode,"/mobile/mywork/qjwork.html",data.resultMessage);
				}
			},
			error: function (XMLHttpRequest, textStatus, errorThrown) {
				//errorMask(errorThrown);
				setPromptForInput("网络异常");
			}
		});
		$("#GlobalMask").hide();
	});
}
function iscroll(){
	var wh = $(window).height()-90-112; 
	if(myiscroll instanceof iScroll)
		myiscroll.destroy();
	$("#qjdcontent").css("height",wh+"px");
	myiscroll = new iScroll("qjdcontent",{bounce:false});
}